<div class="layui-form-item">
    <label class="layui-form-label">账号</label>
    <div class="layui-input-block">
        <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入名字"
               autocomplete="off" class="layui-input" value="<? echo $detail['mid']?>" disabled>
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-block">
        <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入名字"
               autocomplete="off" class="layui-input" value="<? echo $detail['name']?>">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">简称</label>
    <div class="layui-input-block">
        <input type="text" name="ai_sname" placeholder="请输入名字" autocomplete="off" class="layui-input" value="<? echo $detail['sname']?>">
    </div>
</div>




<div class="layui-form-item">
    <label class="layui-form-label">企业识别码</label>
    <div class="layui-input-block">
        <input type="text" name="ai_idnumber" autocomplete="off" class="layui-input" value="<? echo $detail['idnumber']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">联系电话</label>
    <div class="layui-input-block">
        <input type="text" name="ai_phone" autocomplete="off" class="layui-input" value="<? echo $detail['phone']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">法人</label>
    <div class="layui-input-block">
        <input type="text" name="ai_faren" autocomplete="off" class="layui-input" value="<? echo $detail['faren']?>">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">传真</label>
    <div class="layui-input-block">
        <input type="text" name="ai_fax" autocomplete="off" class="layui-input" value="<? echo $detail['fax']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">地址</label>
    <div class="layui-input-block">
        <input type="text" name="ai_address" autocomplete="off" class="layui-input" value="<? echo $detail['address']?>">
    </div>
</div>




<div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
        <input type="text" name="ai_email"   autocomplete="off" class="layui-input" value="<? echo $detail['email']?>">
    </div>
</div>





<div class="layui-form-item">
    <label class="layui-form-label">客户来源</label>
    <div class="layui-input-block" >
        <?foreach (explode(";",$unit_setting['customer_source']) as $k=>$v) { ?>
            <input type="radio" name="ai_source"  value="<? echo $v?>" title="<? echo $v?>" <? if($detail['source']==$v) {echo "checked";} ?>>
        <? }?>
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">行业类型</label>
    <div class="layui-input-block" >
        <?foreach (semicolonExplode($unit_setting['industry_type']) as $k=>$v) { ?>
            <input type="radio" name="ai_source"  value="<? echo $v?>" title="<? echo $v?>" <? if($detail['type']==$v) {echo "checked";} ?>>
        <? }?>
    </div>
</div>


<?//todo 增加介绍人?>

<?
$ageant_list=select_lines_all_items($table_prefix."member","nid desc","","100");
$agent      =select_one_line_all_items($table_prefix."member","nid = '".$detail['informant']."'");
?>

<div class="layui-form-item">
    <label class="layui-form-label">介绍人</label>
    <div class="layui-input-block">
        <select name="ai_informant"  lay-search="" >
            <option value="<? echo $detail['informant']?>"><? echo $detail['informant']." : ".$agent['name']?></option>
            <option value="">无</option>
            <? for($i=0;$i<count($ageant_list);$i++){ ?>
                <option value="<? echo $ageant_list[$i]['nid'] ?>"><? echo $ageant_list[$i]['nid'] ?> : <? echo $ageant_list[$i]['name'] ?></option>
            <? } ?>
        </select>
    </div>
</div>



<?//todo 增加开发业务?>


<div class="layui-form-item">
    <label class="layui-form-label">状态</label>

    <div class="layui-input-block" >

        <input type="radio" name="ai_status"  value="正常"  title="正常"  <? if($detail['status']=="正常"){echo "checked";} ?>>
        <input type="radio" name="ai_status"  value="结业"  title="结业"  <? if($detail['status']=="结业"){echo "checked";} ?>>

    </div>


</div>




<div class="layui-form-item">
    <label class="layui-form-label">网站</label>
    <div class="layui-input-block">
        <input type="text" name="ai_website1" autocomplete="off" class="layui-input" value="<? echo $detail['website1']?>">
    </div>
</div>





<div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $detail['remark']?></textarea>
    </div>
</div>
